#
# ~/.bashrc
#

#export Focusid=$(wmctrl -lp | grep $(xprop -root | grep _NET_ACTIVE_WINDOW | head -1 | awk '{print $5}' | sed 's/,//' | sed 's/^0x/0x0/') | awk '{print $1}')

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'

#alias calcurse='calcurse -D ~/·config/calcurse'
alias abook='abook -C ~/.config/abook/abookrc --datafile $HOME/.config/abook/addressbook'
alias pdate='sudo pacman -Syu'
alias n='nvidia-xrun'
alias s='startx'
alias rm='rm -I -r'
alias mkdir='mkdir -p -v'
alias download='sudo pacman -Sy'
alias remove='sudo pacman -Rs'
alias v='nvim'
alias c='$EDITOR ~/.config/i3/config'
alias vpon='systemctl start openvpn-client@br.service'
alias vpoff='systemctl stop openvpn-client@br.service'
alias vpstatus='systemctl status openvpn-client@br.service'
alias r='vfm'
alias cdc='cd ~/.config'
alias build='cmake -DGeant4_DIR=/home/amaro/geant4/geant4-install/lib64/Geant4-10.5.0/'
alias pc='pass -c'
alias cp='cp -r'
alias b='$EDITOR ~/.bashrc'
alias d='disown'
alias cd..='cd ..'
alias Abuild='rm ./* && cmake ../top-bottom && make && ./AngraG4Simulation -b -r $RANDOM -v 11 -v 21 -v 30 -v 40 -v 51 -p 1 -i muons.hepevt'

. $HOME/.scripts/cht.sh_completion

alias config='/usr/bin/git --git-dir=/home/amaro/.myconf/ --work-tree=/home/amaro'
alias calcurse='calcurse -D ~/.config/calcurse/'

#source /home/amaro/geant4/geant4-install/bin/geant4.sh
#source /home/amaro/geant4/root-build/bin/thisroot.sh
#source .profile
#
PS1='[\u@\h \W]\$ '
function _update_ps1() {
    PS1=$(powerline-shell $?)
}

if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

